package 补充;

public class Math类 {
    public static void main(String[] args) {
        System.out.println("-10的绝对值"+Math.abs(-10));
        System.out.println("大于2.5的最小整数"+Math.ceil(2.5));
        System.out.println("小于2.5的最大整数"+Math.floor(2.5));
        System.out.println("返回两个参数较大的值"+Math.max(9,10));
        System.out.println("返回两个参数较小的值"+Math.min(9,10));
        System.out.println("返回随机数"+Math.random());
        System.out.println("四舍五入10.5/"+Math.round(10.5));
        System.out.println("四舍五入10.4/"+Math.round(10.4));
        System.out.println("平方根函数"+Math.sqrt(5));
        System.out.println("幂运算"+Math.pow(10,5));
    }
}
